from random import randint


def solve():
    n = int(input())
    m = int(input())
    g = filter(lambda x: x % 2 != 0, (randint(0, m) for i in range(n)))
    print(list(g))


if __name__ == "__main__":
    solve()
